import React from 'react';
import {Redirect} from 'umi';

const Auth = (props: any) => {
    const isLogin = true;
    if (isLogin) {
        return <div>{props.children}</div>
    } else {
        return <Redirect to="/"/>
    }
};

export default Auth;
